//
//  MessageTableVc.swift
//  WeiBo14
//
//  Created by rzj on 16/3/9.
//  Copyright © 2016年 rzj. All rights reserved.
//

import UIKit

class MessageTableVc: BaseVisitorsTabVc {

    override func viewDidLoad() {
        super.viewDidLoad()

        //登录不成功
        if loginSuccess == false {
            //设置访客视图信息
            visitorsView.SetUpPageInfo("visitordiscover_image_message", message: "登录后，别人评论你的微博，发给你的消息，都会在这里收到通知")
            //不执行后续方法
            return
        }
    
        setUpUI()
    }

    private func setUpUI() {
    
        navigationItem.leftBarButtonItem = UIBarButtonItem(title: "发现群", target: self, action: "itemOnlickMessage")
    }
    
    func itemOnlickMessage() {
    
        print("itemOnlickMessage")
        let vc = MessageVc()
        navigationController?.pushViewController(vc, animated: true)
    }
    
}
